/**
 * jims
 */
package com.jims.master.modules.emergency.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import javax.validation.constraints.NotNull;

import com.jims.master.common.persistence.DataEntity;

/**
 * Entity
 * @author 系统管理员
 * @version 2017-07-10
 */
public class AmbulanceRecords1 extends DataEntity<AmbulanceRecords1> {
	
	private static final long serialVersionUID = 1L;
	private String clinicId;		// 就诊记录ID
	private Date registDate;		// 就诊日期
	private String name;		// 姓名
	private String sex;		// 性别
	private String age;		// 年龄
	private String phone;		// 电话
	private String diseaseName;		// 病名
	private String address;		// 地址
	private Date answerTime;		// 接听时间
	private Date setoutTime;		// 出车时间
	private Date arriveTime;		// 到达时间
	private Date returnTime;		// 回院时间
	private String doctor;		// 医生
	private String nurse;		// 护士
	private String driver;		// 司机
	private String dispose;		// 处置
	private String tablePosition; //数据来自哪个表 me：本表，other：其他表
	private Date StartTime;//开始时间
	private Date endTime;//开始时间
	private String likeText;//姓名查询
	public AmbulanceRecords1() {
		super();
	}

	public AmbulanceRecords1(String id){
		super(id);
	}

	@Length(min=0, max=64, message="就诊记录ID长度必须介于 0 和 64 之间")
	public String getClinicId() {
		return clinicId;
	}

	public void setClinicId(String clinicId) {
		this.clinicId = clinicId;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@NotNull(message="就诊日期不能为空")
	public Date getRegistDate() {
		return registDate;
	}

	public void setRegistDate(Date registDate) {
		this.registDate = registDate;
	}
	
	@Length(min=0, max=50, message="姓名长度必须介于 0 和 50 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=1, message="性别长度必须介于 0 和 1 之间")
	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}
	
	@Length(min=0, max=11, message="年龄长度必须介于 0 和 11 之间")
	public String getAge() {
		return age;
	}

	public void setAge(String age) {
		this.age = age;
	}
	
	@Length(min=0, max=20, message="电话长度必须介于 0 和 20 之间")
	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}
	
	@Length(min=0, max=100, message="病名长度必须介于 0 和 100 之间")
	public String getDiseaseName() {
		return diseaseName;
	}

	public void setDiseaseName(String diseaseName) {
		this.diseaseName = diseaseName;
	}
	
	@Length(min=0, max=200, message="地址长度必须介于 0 和 200 之间")
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getAnswerTime() {
		return answerTime;
	}

	public void setAnswerTime(Date answerTime) {
		this.answerTime = answerTime;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getSetoutTime() {
		return setoutTime;
	}

	public void setSetoutTime(Date setoutTime) {
		this.setoutTime = setoutTime;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getArriveTime() {
		return arriveTime;
	}

	public void setArriveTime(Date arriveTime) {
		this.arriveTime = arriveTime;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getReturnTime() {
		return returnTime;
	}

	public void setReturnTime(Date returnTime) {
		this.returnTime = returnTime;
	}
	
	@Length(min=0, max=100, message="医生长度必须介于 0 和 100 之间")
	public String getDoctor() {
		return doctor;
	}

	public void setDoctor(String doctor) {
		this.doctor = doctor;
	}
	
	@Length(min=0, max=100, message="护士长度必须介于 0 和 100 之间")
	public String getNurse() {
		return nurse;
	}

	public void setNurse(String nurse) {
		this.nurse = nurse;
	}
	
	@Length(min=0, max=100, message="司机长度必须介于 0 和 100 之间")
	public String getDriver() {
		return driver;
	}

	public void setDriver(String driver) {
		this.driver = driver;
	}
	
	@Length(min=0, max=1, message="处置长度必须介于 0 和 1 之间")
	public String getDispose() {
		return dispose;
	}

	public void setDispose(String dispose) {
		this.dispose = dispose;
	}

	public String getTablePosition() {
		return tablePosition;
	}

	public void setTablePosition(String tablePosition) {
		this.tablePosition = tablePosition;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public Date getStartTime() {

		return StartTime;
	}

	public void setStartTime(Date startTime) {
		StartTime = startTime;
	}

	public String getLikeText() {
		return likeText;
	}

	public void setLikeText(String likeText) {
		this.likeText = likeText;
	}
}